//
//  e7utilitydefine.h
//  e7engine
//
//  Created by cc on 12-2-29.
//  Copyright (c) 2012年 cc. All rights reserved.
//

#ifndef e7engine_e7utilitydefine_h
#define e7engine_e7utilitydefine_h

#include "e7externs.h"

namespace e7engine {
    // enum
    enum eLogLevel
    {
        LOG_DETAIL = 0,
        LOG_DEBUG,
        LOG_WARNING,
        LOG_ERROR,
        LOG_COUNT,
    } ;
    
    // const.
    const int _STRLEN_MICRO                 = 16 ;
    const int _STRLEN_SMALL                 = 64 ;
    const int _STRLEN_NORMAL                = 128 ;
    const int _STRLEN_LARGE                 = 256 ;
    const int _STRLEN_EX                    = 1024 ; //
    
    const int _STRLEN_TIME                  = 64 ;
    const char _TIME_STR_FORMAT[]           = "[%4d-%2d-%2d-%2d-%2d-%2d]" ;
    
    const int _PATH_MAX                     = 260 ;
    const int _STRLEN_PATH                  = 128 ;
    const int _STRLEN_FILE                  = 128 ;
    const int _LOG_LEN                      = 1024 ;
    const int _LOG_MAX                      = 1024 * 1024 * 4 ;

    const char LOG_FILE[][_STRLEN_FILE]    = {
        "detail%s.log",
        "debug%s.log",
        "warning%s.log",
        "error%s.log",
    } ;

}

#endif











